/* Copyright 2001,2002,2003 NAH6 BV
 * All Rights Reserved
 *
 *  $Header: /var/lib/cvs/secphone/ui/controls/VuMeter.h,v 1.3 2003/11/21 12:39:24 itsme Exp $
 *
 *
 */


#if !defined(AFX_VUMETER_H__75A95547_47E2_4EDD_88DD_FCD2E86C2390__INCLUDED_)
#define AFX_VUMETER_H__75A95547_47E2_4EDD_88DD_FCD2E86C2390__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// VuMeter.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CVuMeter window

class CVuMeter : public CButton
{
// Construction
public:
    CVuMeter();

// Attributes
public:

// Operations
public:
    BOOL Create(const RECT& rect, CWnd* pParentWnd, UINT nID, bool bEnabled, int min, int max);
    void SetRange(int min, int max);
    void SetLevel(int level);

// Overrides
    // ClassWizard generated virtual function overrides
    //{{AFX_VIRTUAL(CVuMeter)
    public:
    virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
    //}}AFX_VIRTUAL

// Implementation
public:
    virtual ~CVuMeter();

private:
    int m_min;
    int m_max;
    int m_level;
    int m_npixels;

    // Generated message map functions
protected:
    //{{AFX_MSG(CVuMeter)
    afx_msg void OnClicked();
    //}}AFX_MSG

    DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_VUMETER_H__75A95547_47E2_4EDD_88DD_FCD2E86C2390__INCLUDED_)
